<template>
  <div class="app-container">

    <!-- 搜索工作栏 -->
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="时间" prop="rTime">
        <el-date-picker v-model="queryParams.rTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss" type="daterange"
                        range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <!-- 操作工具栏 -->
    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
                   v-hasPermi="['water:report-year:create']">新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
                   v-hasPermi="['water:report-year:export']">导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <!-- 列表 -->
    <el-table v-loading="loading" :data="list">
      <el-table-column label="编号" align="center" prop="id" />
      <el-table-column label="时间" align="center" prop="rTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.rTime) }}</span>
        </template>
      </el-table-column>
      <el-table-column label="进水泵房液位	" align="center" prop="a1" />
      <el-table-column label="备用	" align="center" prop="a2" />
      <el-table-column label="备用	" align="center" prop="a3" />
      <el-table-column label="备用	" align="center" prop="a4" />
      <el-table-column label="进厂pH	" align="center" prop="a5" />
      <el-table-column label="进厂COD	" align="center" prop="a6" />
      <el-table-column label="进厂SS	" align="center" prop="a7" />
      <el-table-column label="出厂水pH	" align="center" prop="a8" />
      <el-table-column label="出厂水SS	" align="center" prop="a9" />
      <el-table-column label="出厂水氨氮	" align="center" prop="a10" />
      <el-table-column label="出厂水COD	" align="center" prop="a11" />
      <el-table-column label="1脱水机处理量	" align="center" prop="a12" />
      <el-table-column label="2脱水机处理量	" align="center" prop="a13" />
      <el-table-column label="3脱水机处理量	" align="center" prop="a14" />
      <el-table-column label="鼓风机1号风量	" align="center" prop="a15" />
      <el-table-column label="鼓风机2号风量	" align="center" prop="a16" />
      <el-table-column label="鼓风机3号风量	" align="center" prop="a17" />
      <el-table-column label="鼓风机4号风量	" align="center" prop="a18" />
      <el-table-column label="1#高压电压	" align="center" prop="a19" />
      <el-table-column label="1#低压进线电压	" align="center" prop="a20" />
      <el-table-column label="备用	" align="center" prop="a21" />
      <el-table-column label="2#低压进线电压	" align="center" prop="a22" />
      <el-table-column label="备用	" align="center" prop="a23" />
      <el-table-column label="1#鼓风机电流	" align="center" prop="a24" />
      <el-table-column label="1#鼓风机电量	" align="center" prop="a25" />
      <el-table-column label="2#鼓风机电流	" align="center" prop="a26" />
      <el-table-column label="2#鼓风机电量	" align="center" prop="a27" />
      <el-table-column label="3#鼓风机电流	" align="center" prop="a28" />
      <el-table-column label="3#鼓风机电量	" align="center" prop="a29" />
      <el-table-column label="4#鼓风机电流	" align="center" prop="a30" />
      <el-table-column label="4#鼓风机电量	" align="center" prop="a31" />
      <el-table-column label="1#进水泵电流	" align="center" prop="a32" />
      <el-table-column label="1#进水泵电量	" align="center" prop="a33" />
      <el-table-column label="2#进水泵电流	" align="center" prop="a34" />
      <el-table-column label="2#进水泵电量	" align="center" prop="a35" />
      <el-table-column label="3#进水泵电流	" align="center" prop="a36" />
      <el-table-column label="3#进水泵电量	" align="center" prop="a37" />
      <el-table-column label="4#进水泵电流	" align="center" prop="a38" />
      <el-table-column label="4#进水泵电量	" align="center" prop="a39" />
      <el-table-column label="5#进水泵电流	" align="center" prop="a40" />
      <el-table-column label="5#进水泵电量	" align="center" prop="a41" />
      <el-table-column label="脱水车间电量	" align="center" prop="a42" />
      <el-table-column label="紫外柜电量	" align="center" prop="a43" />
      <el-table-column label="1#杂用柜电量	" align="center" prop="a44" />
      <el-table-column label="2#杂用柜电量	" align="center" prop="a45" />
      <el-table-column label="进水流量计	" align="center" prop="a46" />
      <el-table-column label="泵站液位	" align="center" prop="a47" />
      <el-table-column label="1#低压柜电压	" align="center" prop="a48" />
      <el-table-column label="1#低压柜电量	" align="center" prop="a49" />
      <el-table-column label="2#低压柜电压	" align="center" prop="a50" />
      <el-table-column label="2#低压柜电量	" align="center" prop="a51" />
      <el-table-column label="杂电柜电量	" align="center" prop="a52" />
      <el-table-column label="1#提升泵电流	" align="center" prop="a53" />
      <el-table-column label="1#提升泵电量	" align="center" prop="a54" />
      <el-table-column label="1#提升泵时间	" align="center" prop="a55" />
      <el-table-column label="2#提升泵电流	" align="center" prop="a56" />
      <el-table-column label="2#提升泵电量	" align="center" prop="a57" />
      <el-table-column label="2#提升泵时间	" align="center" prop="a58" />
      <el-table-column label="3#提升泵电流	" align="center" prop="a59" />
      <el-table-column label="3#提升泵电量	" align="center" prop="a60" />
      <el-table-column label="3#提升泵时间	" align="center" prop="a61" />
      <el-table-column label="4#提升泵电流	" align="center" prop="a62" />
      <el-table-column label="4#提升泵电量	" align="center" prop="a63" />
      <el-table-column label="4#提升泵时间	" align="center" prop="a64" />
      <el-table-column label="5#提升泵电流	" align="center" prop="a65" />
      <el-table-column label="5#提升泵电量	" align="center" prop="a66" />
      <el-table-column label="5#提升泵时间	" align="center" prop="a67" />
      <el-table-column label="泵站液位	" align="center" prop="a68" />
      <el-table-column label="1#低压柜电压	" align="center" prop="a69" />
      <el-table-column label="1#低压柜电量	" align="center" prop="a70" />
      <el-table-column label="2#低压柜电压	" align="center" prop="a71" />
      <el-table-column label="2#低压柜电量	" align="center" prop="a72" />
      <el-table-column label="杂电柜电量	" align="center" prop="a73" />
      <el-table-column label="1#提升泵电流	" align="center" prop="a74" />
      <el-table-column label="1#提升泵电量	" align="center" prop="a75" />
      <el-table-column label="1#提升泵时间	" align="center" prop="a76" />
      <el-table-column label="2#提升泵电流	" align="center" prop="a77" />
      <el-table-column label="2#提升泵电量	" align="center" prop="a78" />
      <el-table-column label="2#提升泵时间	" align="center" prop="a79" />
      <el-table-column label="3#提升泵电流	" align="center" prop="a80" />
      <el-table-column label="3#提升泵电量	" align="center" prop="a81" />
      <el-table-column label="3#提升泵时间	" align="center" prop="a82" />
      <el-table-column label="4#提升泵电流	" align="center" prop="a83" />
      <el-table-column label="4#提升泵电量	" align="center" prop="a84" />
      <el-table-column label="4#提升泵时间	" align="center" prop="a85" />
      <el-table-column label="5#提升泵电流	" align="center" prop="a86" />
      <el-table-column label="5#提升泵电量	" align="center" prop="a87" />
      <el-table-column label="5#提升泵时间	" align="center" prop="a88" />
      <el-table-column label="6#提升泵电流	" align="center" prop="a89" />
      <el-table-column label="6#提升泵电量	" align="center" prop="a90" />
      <el-table-column label="6#提升泵时间	" align="center" prop="a91" />
      <el-table-column label="1#Cass液位	" align="center" prop="a92" />
      <el-table-column label="1#CassDO	" align="center" prop="a93" />
      <el-table-column label="1#CassMLSS	" align="center" prop="a94" />
      <el-table-column label="1#CassPH	" align="center" prop="a95" />
      <el-table-column label="2#Cass液位	" align="center" prop="a96" />
      <el-table-column label="2#CassDO	" align="center" prop="a97" />
      <el-table-column label="2#CassMLSS	" align="center" prop="a98" />
      <el-table-column label="2#CassPH	" align="center" prop="a99" />
      <el-table-column label="3#Cass液位	" align="center" prop="a100" />
      <el-table-column label="3#CassDO	" align="center" prop="a101" />
      <el-table-column label="3#CassMLSS	" align="center" prop="a102" />
      <el-table-column label="2#CassPH	" align="center" prop="a103" />
      <el-table-column label="4#Cass液位	" align="center" prop="a104" />
      <el-table-column label="4#CassDO	" align="center" prop="a105" />
      <el-table-column label="4#CassMLSS	" align="center" prop="a106" />
      <el-table-column label="4#CassPH	" align="center" prop="a107" />
      <el-table-column label="5#Cass液位	" align="center" prop="a108" />
      <el-table-column label="5#CassDO	" align="center" prop="a109" />
      <el-table-column label="5#CassMLSS	" align="center" prop="a110" />
      <el-table-column label="5#CassPH	" align="center" prop="a111" />
      <el-table-column label="6#Cass液位	" align="center" prop="a112" />
      <el-table-column label="6#CassDO	" align="center" prop="a113" />
      <el-table-column label="6#CassMLSS	" align="center" prop="a114" />
      <el-table-column label="6#CassPH	" align="center" prop="a115" />
      <el-table-column label="7#Cass液位	" align="center" prop="a116" />
      <el-table-column label="7#CassDO	" align="center" prop="a117" />
      <el-table-column label="7#CassMLSS	" align="center" prop="a118" />
      <el-table-column label="7#CassPH	" align="center" prop="a119" />
      <el-table-column label="8#Cass液位	" align="center" prop="a120" />
      <el-table-column label="8#CassDO	" align="center" prop="a121" />
      <el-table-column label="8#CassMLSS	" align="center" prop="a122" />
      <el-table-column label="8#CassPH	" align="center" prop="a123" />
      <el-table-column label="1#储泥池液位	" align="center" prop="a124" />
      <el-table-column label="2#储泥池液位	" align="center" prop="a125" />
      <el-table-column label="1#脱泥机转速	" align="center" prop="a126" />
      <el-table-column label="1#脱泥机差转速	" align="center" prop="a127" />
      <el-table-column label="絮凝剂流量	" align="center" prop="a128" />
      <el-table-column label="污泥流量	" align="center" prop="a129" />
      <el-table-column label="辅机转速	" align="center" prop="a130" />
      <el-table-column label="扭矩	" align="center" prop="a131" />
      <el-table-column label="2#脱泥机转速	" align="center" prop="a132" />
      <el-table-column label="2#脱泥机差转速	" align="center" prop="a133" />
      <el-table-column label="絮凝剂流量	" align="center" prop="a134" />
      <el-table-column label="污泥流量	" align="center" prop="a135" />
      <el-table-column label="螺旋温度	" align="center" prop="a136" />
      <el-table-column label="扭矩	" align="center" prop="a137" />
      <el-table-column label="3#脱泥机转速	" align="center" prop="a138" />
      <el-table-column label="3#脱泥机差转速	" align="center" prop="a139" />
      <el-table-column label="絮凝剂流量	" align="center" prop="a140" />
      <el-table-column label="污泥流量	" align="center" prop="a141" />
      <el-table-column label="螺旋温度	" align="center" prop="a142" />
      <el-table-column label="扭矩	" align="center" prop="a143" />
      <el-table-column label="出厂水总磷" align="center" prop="a144" />
      <el-table-column label="进厂水COD	" align="center" prop="a145" />
      <el-table-column label="1#鼓风量	" align="center" prop="a146" />
      <el-table-column label="2#鼓风量	" align="center" prop="a147" />
      <el-table-column label="3#鼓风量	" align="center" prop="a148" />
      <el-table-column label="4#鼓风量	" align="center" prop="a149" />
      <el-table-column label="除臭电量	" align="center" prop="a150" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
                     v-hasPermi="['water:report-year:update']">修改</el-button>
          <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
                     v-hasPermi="['water:report-year:delete']">删除</el-button>
        </template>
      </el-table-column>
    </el-table>
    <!-- 分页组件 -->
    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize"
                @pagination="getList"/>

    <!-- 对话框(添加 / 修改) -->
    <el-dialog :title="title" :visible.sync="open" width="500px" v-dialogDrag append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="时间" prop="rTime">
          <el-date-picker clearable v-model="form.rTime" type="date" value-format="timestamp" placeholder="选择时间" />
        </el-form-item>
        <el-form-item label="进水泵房液位	" prop="a1">
          <el-input v-model="form.a1" placeholder="请输入进水泵房液位	" />
        </el-form-item>
        <el-form-item label="备用	" prop="a2">
          <el-input v-model="form.a2" placeholder="请输入备用	" />
        </el-form-item>
        <el-form-item label="备用	" prop="a3">
          <el-input v-model="form.a3" placeholder="请输入备用	" />
        </el-form-item>
        <el-form-item label="备用	" prop="a4">
          <el-input v-model="form.a4" placeholder="请输入备用	" />
        </el-form-item>
        <el-form-item label="进厂pH	" prop="a5">
          <el-input v-model="form.a5" placeholder="请输入进厂pH	" />
        </el-form-item>
        <el-form-item label="进厂COD	" prop="a6">
          <el-input v-model="form.a6" placeholder="请输入进厂COD	" />
        </el-form-item>
        <el-form-item label="进厂SS	" prop="a7">
          <el-input v-model="form.a7" placeholder="请输入进厂SS	" />
        </el-form-item>
        <el-form-item label="出厂水pH	" prop="a8">
          <el-input v-model="form.a8" placeholder="请输入出厂水pH	" />
        </el-form-item>
        <el-form-item label="出厂水SS	" prop="a9">
          <el-input v-model="form.a9" placeholder="请输入出厂水SS	" />
        </el-form-item>
        <el-form-item label="出厂水氨氮	" prop="a10">
          <el-input v-model="form.a10" placeholder="请输入出厂水氨氮	" />
        </el-form-item>
        <el-form-item label="出厂水COD	" prop="a11">
          <el-input v-model="form.a11" placeholder="请输入出厂水COD	" />
        </el-form-item>
        <el-form-item label="1脱水机处理量	" prop="a12">
          <el-input v-model="form.a12" placeholder="请输入1脱水机处理量	" />
        </el-form-item>
        <el-form-item label="2脱水机处理量	" prop="a13">
          <el-input v-model="form.a13" placeholder="请输入2脱水机处理量	" />
        </el-form-item>
        <el-form-item label="3脱水机处理量	" prop="a14">
          <el-input v-model="form.a14" placeholder="请输入3脱水机处理量	" />
        </el-form-item>
        <el-form-item label="鼓风机1号风量	" prop="a15">
          <el-input v-model="form.a15" placeholder="请输入鼓风机1号风量	" />
        </el-form-item>
        <el-form-item label="鼓风机2号风量	" prop="a16">
          <el-input v-model="form.a16" placeholder="请输入鼓风机2号风量	" />
        </el-form-item>
        <el-form-item label="鼓风机3号风量	" prop="a17">
          <el-input v-model="form.a17" placeholder="请输入鼓风机3号风量	" />
        </el-form-item>
        <el-form-item label="鼓风机4号风量	" prop="a18">
          <el-input v-model="form.a18" placeholder="请输入鼓风机4号风量	" />
        </el-form-item>
        <el-form-item label="1#高压电压	" prop="a19">
          <el-input v-model="form.a19" placeholder="请输入1#高压电压	" />
        </el-form-item>
        <el-form-item label="1#低压进线电压	" prop="a20">
          <el-input v-model="form.a20" placeholder="请输入1#低压进线电压	" />
        </el-form-item>
        <el-form-item label="备用	" prop="a21">
          <el-input v-model="form.a21" placeholder="请输入备用	" />
        </el-form-item>
        <el-form-item label="2#低压进线电压	" prop="a22">
          <el-input v-model="form.a22" placeholder="请输入2#低压进线电压	" />
        </el-form-item>
        <el-form-item label="备用	" prop="a23">
          <el-input v-model="form.a23" placeholder="请输入备用	" />
        </el-form-item>
        <el-form-item label="1#鼓风机电流	" prop="a24">
          <el-input v-model="form.a24" placeholder="请输入1#鼓风机电流	" />
        </el-form-item>
        <el-form-item label="1#鼓风机电量	" prop="a25">
          <el-input v-model="form.a25" placeholder="请输入1#鼓风机电量	" />
        </el-form-item>
        <el-form-item label="2#鼓风机电流	" prop="a26">
          <el-input v-model="form.a26" placeholder="请输入2#鼓风机电流	" />
        </el-form-item>
        <el-form-item label="2#鼓风机电量	" prop="a27">
          <el-input v-model="form.a27" placeholder="请输入2#鼓风机电量	" />
        </el-form-item>
        <el-form-item label="3#鼓风机电流	" prop="a28">
          <el-input v-model="form.a28" placeholder="请输入3#鼓风机电流	" />
        </el-form-item>
        <el-form-item label="3#鼓风机电量	" prop="a29">
          <el-input v-model="form.a29" placeholder="请输入3#鼓风机电量	" />
        </el-form-item>
        <el-form-item label="4#鼓风机电流	" prop="a30">
          <el-input v-model="form.a30" placeholder="请输入4#鼓风机电流	" />
        </el-form-item>
        <el-form-item label="4#鼓风机电量	" prop="a31">
          <el-input v-model="form.a31" placeholder="请输入4#鼓风机电量	" />
        </el-form-item>
        <el-form-item label="1#进水泵电流	" prop="a32">
          <el-input v-model="form.a32" placeholder="请输入1#进水泵电流	" />
        </el-form-item>
        <el-form-item label="1#进水泵电量	" prop="a33">
          <el-input v-model="form.a33" placeholder="请输入1#进水泵电量	" />
        </el-form-item>
        <el-form-item label="2#进水泵电流	" prop="a34">
          <el-input v-model="form.a34" placeholder="请输入2#进水泵电流	" />
        </el-form-item>
        <el-form-item label="2#进水泵电量	" prop="a35">
          <el-input v-model="form.a35" placeholder="请输入2#进水泵电量	" />
        </el-form-item>
        <el-form-item label="3#进水泵电流	" prop="a36">
          <el-input v-model="form.a36" placeholder="请输入3#进水泵电流	" />
        </el-form-item>
        <el-form-item label="3#进水泵电量	" prop="a37">
          <el-input v-model="form.a37" placeholder="请输入3#进水泵电量	" />
        </el-form-item>
        <el-form-item label="4#进水泵电流	" prop="a38">
          <el-input v-model="form.a38" placeholder="请输入4#进水泵电流	" />
        </el-form-item>
        <el-form-item label="4#进水泵电量	" prop="a39">
          <el-input v-model="form.a39" placeholder="请输入4#进水泵电量	" />
        </el-form-item>
        <el-form-item label="5#进水泵电流	" prop="a40">
          <el-input v-model="form.a40" placeholder="请输入5#进水泵电流	" />
        </el-form-item>
        <el-form-item label="5#进水泵电量	" prop="a41">
          <el-input v-model="form.a41" placeholder="请输入5#进水泵电量	" />
        </el-form-item>
        <el-form-item label="脱水车间电量	" prop="a42">
          <el-input v-model="form.a42" placeholder="请输入脱水车间电量	" />
        </el-form-item>
        <el-form-item label="紫外柜电量	" prop="a43">
          <el-input v-model="form.a43" placeholder="请输入紫外柜电量	" />
        </el-form-item>
        <el-form-item label="1#杂用柜电量	" prop="a44">
          <el-input v-model="form.a44" placeholder="请输入1#杂用柜电量	" />
        </el-form-item>
        <el-form-item label="2#杂用柜电量	" prop="a45">
          <el-input v-model="form.a45" placeholder="请输入2#杂用柜电量	" />
        </el-form-item>
        <el-form-item label="进水流量计	" prop="a46">
          <el-input v-model="form.a46" placeholder="请输入进水流量计	" />
        </el-form-item>
        <el-form-item label="泵站液位	" prop="a47">
          <el-input v-model="form.a47" placeholder="请输入泵站液位	" />
        </el-form-item>
        <el-form-item label="1#低压柜电压	" prop="a48">
          <el-input v-model="form.a48" placeholder="请输入1#低压柜电压	" />
        </el-form-item>
        <el-form-item label="1#低压柜电量	" prop="a49">
          <el-input v-model="form.a49" placeholder="请输入1#低压柜电量	" />
        </el-form-item>
        <el-form-item label="2#低压柜电压	" prop="a50">
          <el-input v-model="form.a50" placeholder="请输入2#低压柜电压	" />
        </el-form-item>
        <el-form-item label="2#低压柜电量	" prop="a51">
          <el-input v-model="form.a51" placeholder="请输入2#低压柜电量	" />
        </el-form-item>
        <el-form-item label="杂电柜电量	" prop="a52">
          <el-input v-model="form.a52" placeholder="请输入杂电柜电量	" />
        </el-form-item>
        <el-form-item label="1#提升泵电流	" prop="a53">
          <el-input v-model="form.a53" placeholder="请输入1#提升泵电流	" />
        </el-form-item>
        <el-form-item label="1#提升泵电量	" prop="a54">
          <el-input v-model="form.a54" placeholder="请输入1#提升泵电量	" />
        </el-form-item>
        <el-form-item label="1#提升泵时间	" prop="a55">
          <el-input v-model="form.a55" placeholder="请输入1#提升泵时间	" />
        </el-form-item>
        <el-form-item label="2#提升泵电流	" prop="a56">
          <el-input v-model="form.a56" placeholder="请输入2#提升泵电流	" />
        </el-form-item>
        <el-form-item label="2#提升泵电量	" prop="a57">
          <el-input v-model="form.a57" placeholder="请输入2#提升泵电量	" />
        </el-form-item>
        <el-form-item label="2#提升泵时间	" prop="a58">
          <el-input v-model="form.a58" placeholder="请输入2#提升泵时间	" />
        </el-form-item>
        <el-form-item label="3#提升泵电流	" prop="a59">
          <el-input v-model="form.a59" placeholder="请输入3#提升泵电流	" />
        </el-form-item>
        <el-form-item label="3#提升泵电量	" prop="a60">
          <el-input v-model="form.a60" placeholder="请输入3#提升泵电量	" />
        </el-form-item>
        <el-form-item label="3#提升泵时间	" prop="a61">
          <el-input v-model="form.a61" placeholder="请输入3#提升泵时间	" />
        </el-form-item>
        <el-form-item label="4#提升泵电流	" prop="a62">
          <el-input v-model="form.a62" placeholder="请输入4#提升泵电流	" />
        </el-form-item>
        <el-form-item label="4#提升泵电量	" prop="a63">
          <el-input v-model="form.a63" placeholder="请输入4#提升泵电量	" />
        </el-form-item>
        <el-form-item label="4#提升泵时间	" prop="a64">
          <el-input v-model="form.a64" placeholder="请输入4#提升泵时间	" />
        </el-form-item>
        <el-form-item label="5#提升泵电流	" prop="a65">
          <el-input v-model="form.a65" placeholder="请输入5#提升泵电流	" />
        </el-form-item>
        <el-form-item label="5#提升泵电量	" prop="a66">
          <el-input v-model="form.a66" placeholder="请输入5#提升泵电量	" />
        </el-form-item>
        <el-form-item label="5#提升泵时间	" prop="a67">
          <el-input v-model="form.a67" placeholder="请输入5#提升泵时间	" />
        </el-form-item>
        <el-form-item label="泵站液位	" prop="a68">
          <el-input v-model="form.a68" placeholder="请输入泵站液位	" />
        </el-form-item>
        <el-form-item label="1#低压柜电压	" prop="a69">
          <el-input v-model="form.a69" placeholder="请输入1#低压柜电压	" />
        </el-form-item>
        <el-form-item label="1#低压柜电量	" prop="a70">
          <el-input v-model="form.a70" placeholder="请输入1#低压柜电量	" />
        </el-form-item>
        <el-form-item label="2#低压柜电压	" prop="a71">
          <el-input v-model="form.a71" placeholder="请输入2#低压柜电压	" />
        </el-form-item>
        <el-form-item label="2#低压柜电量	" prop="a72">
          <el-input v-model="form.a72" placeholder="请输入2#低压柜电量	" />
        </el-form-item>
        <el-form-item label="杂电柜电量	" prop="a73">
          <el-input v-model="form.a73" placeholder="请输入杂电柜电量	" />
        </el-form-item>
        <el-form-item label="1#提升泵电流	" prop="a74">
          <el-input v-model="form.a74" placeholder="请输入1#提升泵电流	" />
        </el-form-item>
        <el-form-item label="1#提升泵电量	" prop="a75">
          <el-input v-model="form.a75" placeholder="请输入1#提升泵电量	" />
        </el-form-item>
        <el-form-item label="1#提升泵时间	" prop="a76">
          <el-input v-model="form.a76" placeholder="请输入1#提升泵时间	" />
        </el-form-item>
        <el-form-item label="2#提升泵电流	" prop="a77">
          <el-input v-model="form.a77" placeholder="请输入2#提升泵电流	" />
        </el-form-item>
        <el-form-item label="2#提升泵电量	" prop="a78">
          <el-input v-model="form.a78" placeholder="请输入2#提升泵电量	" />
        </el-form-item>
        <el-form-item label="2#提升泵时间	" prop="a79">
          <el-input v-model="form.a79" placeholder="请输入2#提升泵时间	" />
        </el-form-item>
        <el-form-item label="3#提升泵电流	" prop="a80">
          <el-input v-model="form.a80" placeholder="请输入3#提升泵电流	" />
        </el-form-item>
        <el-form-item label="3#提升泵电量	" prop="a81">
          <el-input v-model="form.a81" placeholder="请输入3#提升泵电量	" />
        </el-form-item>
        <el-form-item label="3#提升泵时间	" prop="a82">
          <el-input v-model="form.a82" placeholder="请输入3#提升泵时间	" />
        </el-form-item>
        <el-form-item label="4#提升泵电流	" prop="a83">
          <el-input v-model="form.a83" placeholder="请输入4#提升泵电流	" />
        </el-form-item>
        <el-form-item label="4#提升泵电量	" prop="a84">
          <el-input v-model="form.a84" placeholder="请输入4#提升泵电量	" />
        </el-form-item>
        <el-form-item label="4#提升泵时间	" prop="a85">
          <el-input v-model="form.a85" placeholder="请输入4#提升泵时间	" />
        </el-form-item>
        <el-form-item label="5#提升泵电流	" prop="a86">
          <el-input v-model="form.a86" placeholder="请输入5#提升泵电流	" />
        </el-form-item>
        <el-form-item label="5#提升泵电量	" prop="a87">
          <el-input v-model="form.a87" placeholder="请输入5#提升泵电量	" />
        </el-form-item>
        <el-form-item label="5#提升泵时间	" prop="a88">
          <el-input v-model="form.a88" placeholder="请输入5#提升泵时间	" />
        </el-form-item>
        <el-form-item label="6#提升泵电流	" prop="a89">
          <el-input v-model="form.a89" placeholder="请输入6#提升泵电流	" />
        </el-form-item>
        <el-form-item label="6#提升泵电量	" prop="a90">
          <el-input v-model="form.a90" placeholder="请输入6#提升泵电量	" />
        </el-form-item>
        <el-form-item label="6#提升泵时间	" prop="a91">
          <el-input v-model="form.a91" placeholder="请输入6#提升泵时间	" />
        </el-form-item>
        <el-form-item label="1#Cass液位	" prop="a92">
          <el-input v-model="form.a92" placeholder="请输入1#Cass液位	" />
        </el-form-item>
        <el-form-item label="1#CassDO	" prop="a93">
          <el-input v-model="form.a93" placeholder="请输入1#CassDO	" />
        </el-form-item>
        <el-form-item label="1#CassMLSS	" prop="a94">
          <el-input v-model="form.a94" placeholder="请输入1#CassMLSS	" />
        </el-form-item>
        <el-form-item label="1#CassPH	" prop="a95">
          <el-input v-model="form.a95" placeholder="请输入1#CassPH	" />
        </el-form-item>
        <el-form-item label="2#Cass液位	" prop="a96">
          <el-input v-model="form.a96" placeholder="请输入2#Cass液位	" />
        </el-form-item>
        <el-form-item label="2#CassDO	" prop="a97">
          <el-input v-model="form.a97" placeholder="请输入2#CassDO	" />
        </el-form-item>
        <el-form-item label="2#CassMLSS	" prop="a98">
          <el-input v-model="form.a98" placeholder="请输入2#CassMLSS	" />
        </el-form-item>
        <el-form-item label="2#CassPH	" prop="a99">
          <el-input v-model="form.a99" placeholder="请输入2#CassPH	" />
        </el-form-item>
        <el-form-item label="3#Cass液位	" prop="a100">
          <el-input v-model="form.a100" placeholder="请输入3#Cass液位	" />
        </el-form-item>
        <el-form-item label="3#CassDO	" prop="a101">
          <el-input v-model="form.a101" placeholder="请输入3#CassDO	" />
        </el-form-item>
        <el-form-item label="3#CassMLSS	" prop="a102">
          <el-input v-model="form.a102" placeholder="请输入3#CassMLSS	" />
        </el-form-item>
        <el-form-item label="2#CassPH	" prop="a103">
          <el-input v-model="form.a103" placeholder="请输入2#CassPH	" />
        </el-form-item>
        <el-form-item label="4#Cass液位	" prop="a104">
          <el-input v-model="form.a104" placeholder="请输入4#Cass液位	" />
        </el-form-item>
        <el-form-item label="4#CassDO	" prop="a105">
          <el-input v-model="form.a105" placeholder="请输入4#CassDO	" />
        </el-form-item>
        <el-form-item label="4#CassMLSS	" prop="a106">
          <el-input v-model="form.a106" placeholder="请输入4#CassMLSS	" />
        </el-form-item>
        <el-form-item label="4#CassPH	" prop="a107">
          <el-input v-model="form.a107" placeholder="请输入4#CassPH	" />
        </el-form-item>
        <el-form-item label="5#Cass液位	" prop="a108">
          <el-input v-model="form.a108" placeholder="请输入5#Cass液位	" />
        </el-form-item>
        <el-form-item label="5#CassDO	" prop="a109">
          <el-input v-model="form.a109" placeholder="请输入5#CassDO	" />
        </el-form-item>
        <el-form-item label="5#CassMLSS	" prop="a110">
          <el-input v-model="form.a110" placeholder="请输入5#CassMLSS	" />
        </el-form-item>
        <el-form-item label="5#CassPH	" prop="a111">
          <el-input v-model="form.a111" placeholder="请输入5#CassPH	" />
        </el-form-item>
        <el-form-item label="6#Cass液位	" prop="a112">
          <el-input v-model="form.a112" placeholder="请输入6#Cass液位	" />
        </el-form-item>
        <el-form-item label="6#CassDO	" prop="a113">
          <el-input v-model="form.a113" placeholder="请输入6#CassDO	" />
        </el-form-item>
        <el-form-item label="6#CassMLSS	" prop="a114">
          <el-input v-model="form.a114" placeholder="请输入6#CassMLSS	" />
        </el-form-item>
        <el-form-item label="6#CassPH	" prop="a115">
          <el-input v-model="form.a115" placeholder="请输入6#CassPH	" />
        </el-form-item>
        <el-form-item label="7#Cass液位	" prop="a116">
          <el-input v-model="form.a116" placeholder="请输入7#Cass液位	" />
        </el-form-item>
        <el-form-item label="7#CassDO	" prop="a117">
          <el-input v-model="form.a117" placeholder="请输入7#CassDO	" />
        </el-form-item>
        <el-form-item label="7#CassMLSS	" prop="a118">
          <el-input v-model="form.a118" placeholder="请输入7#CassMLSS	" />
        </el-form-item>
        <el-form-item label="7#CassPH	" prop="a119">
          <el-input v-model="form.a119" placeholder="请输入7#CassPH	" />
        </el-form-item>
        <el-form-item label="8#Cass液位	" prop="a120">
          <el-input v-model="form.a120" placeholder="请输入8#Cass液位	" />
        </el-form-item>
        <el-form-item label="8#CassDO	" prop="a121">
          <el-input v-model="form.a121" placeholder="请输入8#CassDO	" />
        </el-form-item>
        <el-form-item label="8#CassMLSS	" prop="a122">
          <el-input v-model="form.a122" placeholder="请输入8#CassMLSS	" />
        </el-form-item>
        <el-form-item label="8#CassPH	" prop="a123">
          <el-input v-model="form.a123" placeholder="请输入8#CassPH	" />
        </el-form-item>
        <el-form-item label="1#储泥池液位	" prop="a124">
          <el-input v-model="form.a124" placeholder="请输入1#储泥池液位	" />
        </el-form-item>
        <el-form-item label="2#储泥池液位	" prop="a125">
          <el-input v-model="form.a125" placeholder="请输入2#储泥池液位	" />
        </el-form-item>
        <el-form-item label="1#脱泥机转速	" prop="a126">
          <el-input v-model="form.a126" placeholder="请输入1#脱泥机转速	" />
        </el-form-item>
        <el-form-item label="1#脱泥机差转速	" prop="a127">
          <el-input v-model="form.a127" placeholder="请输入1#脱泥机差转速	" />
        </el-form-item>
        <el-form-item label="絮凝剂流量	" prop="a128">
          <el-input v-model="form.a128" placeholder="请输入絮凝剂流量	" />
        </el-form-item>
        <el-form-item label="污泥流量	" prop="a129">
          <el-input v-model="form.a129" placeholder="请输入污泥流量	" />
        </el-form-item>
        <el-form-item label="辅机转速	" prop="a130">
          <el-input v-model="form.a130" placeholder="请输入辅机转速	" />
        </el-form-item>
        <el-form-item label="扭矩	" prop="a131">
          <el-input v-model="form.a131" placeholder="请输入扭矩	" />
        </el-form-item>
        <el-form-item label="2#脱泥机转速	" prop="a132">
          <el-input v-model="form.a132" placeholder="请输入2#脱泥机转速	" />
        </el-form-item>
        <el-form-item label="2#脱泥机差转速	" prop="a133">
          <el-input v-model="form.a133" placeholder="请输入2#脱泥机差转速	" />
        </el-form-item>
        <el-form-item label="絮凝剂流量	" prop="a134">
          <el-input v-model="form.a134" placeholder="请输入絮凝剂流量	" />
        </el-form-item>
        <el-form-item label="污泥流量	" prop="a135">
          <el-input v-model="form.a135" placeholder="请输入污泥流量	" />
        </el-form-item>
        <el-form-item label="螺旋温度	" prop="a136">
          <el-input v-model="form.a136" placeholder="请输入螺旋温度	" />
        </el-form-item>
        <el-form-item label="扭矩	" prop="a137">
          <el-input v-model="form.a137" placeholder="请输入扭矩	" />
        </el-form-item>
        <el-form-item label="3#脱泥机转速	" prop="a138">
          <el-input v-model="form.a138" placeholder="请输入3#脱泥机转速	" />
        </el-form-item>
        <el-form-item label="3#脱泥机差转速	" prop="a139">
          <el-input v-model="form.a139" placeholder="请输入3#脱泥机差转速	" />
        </el-form-item>
        <el-form-item label="絮凝剂流量	" prop="a140">
          <el-input v-model="form.a140" placeholder="请输入絮凝剂流量	" />
        </el-form-item>
        <el-form-item label="污泥流量	" prop="a141">
          <el-input v-model="form.a141" placeholder="请输入污泥流量	" />
        </el-form-item>
        <el-form-item label="螺旋温度	" prop="a142">
          <el-input v-model="form.a142" placeholder="请输入螺旋温度	" />
        </el-form-item>
        <el-form-item label="扭矩	" prop="a143">
          <el-input v-model="form.a143" placeholder="请输入扭矩	" />
        </el-form-item>
        <el-form-item label="出厂水总磷" prop="a144">
          <el-input v-model="form.a144" placeholder="请输入出厂水总磷" />
        </el-form-item>
        <el-form-item label="进厂水COD	" prop="a145">
          <el-input v-model="form.a145" placeholder="请输入进厂水COD	" />
        </el-form-item>
        <el-form-item label="1#鼓风量	" prop="a146">
          <el-input v-model="form.a146" placeholder="请输入1#鼓风量	" />
        </el-form-item>
        <el-form-item label="2#鼓风量	" prop="a147">
          <el-input v-model="form.a147" placeholder="请输入2#鼓风量	" />
        </el-form-item>
        <el-form-item label="3#鼓风量	" prop="a148">
          <el-input v-model="form.a148" placeholder="请输入3#鼓风量	" />
        </el-form-item>
        <el-form-item label="4#鼓风量	" prop="a149">
          <el-input v-model="form.a149" placeholder="请输入4#鼓风量	" />
        </el-form-item>
        <el-form-item label="除臭电量	" prop="a150">
          <el-input v-model="form.a150" placeholder="请输入除臭电量	" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { createReportYear, updateReportYear, deleteReportYear, getReportYear, getReportYearPage, exportReportYearExcel } from "@/api/water/reportYear";

export default {
  name: "ReportYear",
  components: {
  },
  data() {
    return {
      // 遮罩层
      loading: true,
      // 导出遮罩层
      exportLoading: false,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 年报列表
      list: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNo: 1,
        pageSize: 10,
        rTime: [],
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
        rTime: [{ required: true, message: "时间不能为空", trigger: "blur" }],
      }
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询列表 */
    getList() {
      this.loading = true;
      // 执行查询
      getReportYearPage(this.queryParams).then(response => {
        this.list = response.data.list;
        this.total = response.data.total;
        this.loading = false;
      });
    },
    /** 取消按钮 */
    cancel() {
      this.open = false;
      this.reset();
    },
    /** 表单重置 */
    reset() {
      this.form = {
        id: undefined,
        rTime: undefined,
        a1: undefined,
        a2: undefined,
        a3: undefined,
        a4: undefined,
        a5: undefined,
        a6: undefined,
        a7: undefined,
        a8: undefined,
        a9: undefined,
        a10: undefined,
        a11: undefined,
        a12: undefined,
        a13: undefined,
        a14: undefined,
        a15: undefined,
        a16: undefined,
        a17: undefined,
        a18: undefined,
        a19: undefined,
        a20: undefined,
        a21: undefined,
        a22: undefined,
        a23: undefined,
        a24: undefined,
        a25: undefined,
        a26: undefined,
        a27: undefined,
        a28: undefined,
        a29: undefined,
        a30: undefined,
        a31: undefined,
        a32: undefined,
        a33: undefined,
        a34: undefined,
        a35: undefined,
        a36: undefined,
        a37: undefined,
        a38: undefined,
        a39: undefined,
        a40: undefined,
        a41: undefined,
        a42: undefined,
        a43: undefined,
        a44: undefined,
        a45: undefined,
        a46: undefined,
        a47: undefined,
        a48: undefined,
        a49: undefined,
        a50: undefined,
        a51: undefined,
        a52: undefined,
        a53: undefined,
        a54: undefined,
        a55: undefined,
        a56: undefined,
        a57: undefined,
        a58: undefined,
        a59: undefined,
        a60: undefined,
        a61: undefined,
        a62: undefined,
        a63: undefined,
        a64: undefined,
        a65: undefined,
        a66: undefined,
        a67: undefined,
        a68: undefined,
        a69: undefined,
        a70: undefined,
        a71: undefined,
        a72: undefined,
        a73: undefined,
        a74: undefined,
        a75: undefined,
        a76: undefined,
        a77: undefined,
        a78: undefined,
        a79: undefined,
        a80: undefined,
        a81: undefined,
        a82: undefined,
        a83: undefined,
        a84: undefined,
        a85: undefined,
        a86: undefined,
        a87: undefined,
        a88: undefined,
        a89: undefined,
        a90: undefined,
        a91: undefined,
        a92: undefined,
        a93: undefined,
        a94: undefined,
        a95: undefined,
        a96: undefined,
        a97: undefined,
        a98: undefined,
        a99: undefined,
        a100: undefined,
        a101: undefined,
        a102: undefined,
        a103: undefined,
        a104: undefined,
        a105: undefined,
        a106: undefined,
        a107: undefined,
        a108: undefined,
        a109: undefined,
        a110: undefined,
        a111: undefined,
        a112: undefined,
        a113: undefined,
        a114: undefined,
        a115: undefined,
        a116: undefined,
        a117: undefined,
        a118: undefined,
        a119: undefined,
        a120: undefined,
        a121: undefined,
        a122: undefined,
        a123: undefined,
        a124: undefined,
        a125: undefined,
        a126: undefined,
        a127: undefined,
        a128: undefined,
        a129: undefined,
        a130: undefined,
        a131: undefined,
        a132: undefined,
        a133: undefined,
        a134: undefined,
        a135: undefined,
        a136: undefined,
        a137: undefined,
        a138: undefined,
        a139: undefined,
        a140: undefined,
        a141: undefined,
        a142: undefined,
        a143: undefined,
        a144: undefined,
        a145: undefined,
        a146: undefined,
        a147: undefined,
        a148: undefined,
        a149: undefined,
        a150: undefined,
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNo = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加年报";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      const id = row.id;
      getReportYear(id).then(response => {
        this.form = response.data;
        this.open = true;
        this.title = "修改年报";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (!valid) {
          return;
        }
        // 修改的提交
        if (this.form.id != null) {
          updateReportYear(this.form).then(response => {
            this.$modal.msgSuccess("修改成功");
            this.open = false;
            this.getList();
          });
          return;
        }
        // 添加的提交
        createReportYear(this.form).then(response => {
          this.$modal.msgSuccess("新增成功");
          this.open = false;
          this.getList();
        });
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const id = row.id;
      this.$modal.confirm('是否确认删除年报编号为"' + id + '"的数据项?').then(function() {
          return deleteReportYear(id);
        }).then(() => {
          this.getList();
          this.$modal.msgSuccess("删除成功");
        }).catch(() => {});
    },
    /** 导出按钮操作 */
    handleExport() {
      // 处理查询参数
      let params = {...this.queryParams};
      params.pageNo = undefined;
      params.pageSize = undefined;
      this.$modal.confirm('是否确认导出所有年报数据项?').then(() => {
          this.exportLoading = true;
          return exportReportYearExcel(params);
        }).then(response => {
          this.$download.excel(response, '年报.xls');
          this.exportLoading = false;
        }).catch(() => {});
    }
  }
};
</script>
